package com.yzc.mihuyou.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yzc
 * @since 2022-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Attention对象", description="")
public class Attention implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "本人id")
    @TableField("Uid")
    private Long uid;

    @ApiModelProperty(value = "关注人")
    @TableField("Aid")
    private Long aid;

    @ApiModelProperty(value = "状态 -1拉黑 0未关注 1关注")
    private Boolean state;

    public Attention() {
    }

    public Attention(Long uid, Long aid) {
        this.uid = uid;
        this.aid = aid;
    }
}
